graphic
Type
object
Summary
A control that is a resizeable geometric shape.
Syntax
graphic
Description
Use the graphic object type to create a geometric shape, a straight or broken line, an arrow, or other shape.
Graphics can be circles, ovals, arcs, squares, rectangles, regular polygons with any number of sides, irregular polygons (closed or open), lines (jagged or straight), or curves (smooth or broken). You specify a graphic's basic shape by setting its style property, and details of different basic shapes with the points, arcAngle, startAngle, angle, and polySides properties. Unlike an image, a graphic can be resized without losing detail or becoming "jagged".
A graphic is contained in a card, group, or background. Graphics cannot contain other objects.
Examples
set the backgroundPattern of graphic "High Energy" to 3012
move graphic "Arrow" to 45,104 in 3 seconds
Related
glossary: property, object type
keyword: control
object: image
property: startAngle, angle, editMode, points, arcAngle, properties, polySides
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile